package com.factory._09Facade;

public class Facade {

    private PaySystem paySystem;
    private OrderSystem orderSystem;
    private ProductSystem productSystem;

    public Facade(){
        paySystem = new PaySystem();
        orderSystem = new OrderSystem();
        productSystem = new ProductSystem();
    }

    public void buyABook(){
        paySystem.pay();
        orderSystem.createOrder();
        productSystem.deProductCount();
    }

}
